local CommonOHOH = _G.CommonOHOH;
local M = CommonOHOH.class.new(script, CommonOHOH.files.BaseComponent());


function M.new(self,...)
	return M(self,...);
end;

function M.ctor(self, parent)
	M.super.ctor(self, parent);
    self.Att=_G.ClientOHOH:GetPath_Loop("Touch.Prompt",self.parent:GetRoot())

    self.ProximityPrompt=_G.ClientOHOH:GetPath_Loop("ProximityPrompt", self.Att)

    self.ProximityPrompt.ActionText=_G.LanguageHelper:GetText(888001)


    self.ProximityPrompt.Triggered:Connect(function()
        local list= self.parent.TryFeedEvent:Action()
        for k,v in pairs(list) do
            if v then
                self:Hide()
            end
        end 
    end)
    self:Show()

end;

function M.dtor(self)
   
	M.super.dtor(self);
end

function M.Hide(self)
    self.ProximityPrompt.Enabled=false
end

function M.Show(self)
    self.ProximityPrompt.Enabled=true
end

function M.Update(self)

end

return M

